package com.infore.authorityManagement.service;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import com.infore.authorityManagement.entity.PasswordVo;
import com.infore.authorityManagement.entity.SysUser;
import com.infore.authorityManagement.util.Page;

public interface ISysUserService {

    List<SysUser> getUsers(SysUser sysUser);

    SysUser getUserById(String userId);

    SysUser getUserByAccount(String userAccount);

    Page<SysUser> getUsersForPage(SysUser sysUser, Integer pageSize, Integer pageNo);

    Map<String, Object> addUser(SysUser sysUser);

    int deleteUserById(String userId);

    int deleteUserByAccount(String userAccount);

    int updateUser(SysUser sysUser);


    int updateUserPassword(PasswordVo passwordVo);

    Map<String, Object> userAuth(String account, String password, String appUUID, HttpServletRequest request);
    
    int logout(String token);

    int validateToken(String token);

}
